﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cms.Core.Infrastructure.Cache
{
   public interface ICacheBase
    {
        /// <summary>
        /// 得到
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="key"></param>
        /// <returns></returns>
        T Get<T>(string key) where T : class, new();

        void Remove(object key);

        object Get(object key);


        void Set<T>(string key, T t) where T : class, new();

        /// <summary>
        /// 判断Key是否存
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        bool IsExist(string key);
    }
}
